<?php

/**
 * enquete components.
 *
 * @package    Terapia Vital
 * @subpackage enquete
 * @author     Foxsis
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class enqueteComponents extends sfComponentsFoxsis
{
	public function executeEnquete()
	{
		$q = new Doctrine_Query();
		$enquete = $q->from('Enquete e')
		  ->where("e.st_enquete = 'S'")
		  ->execute();

		if(count($enquete))
			$this->enquete = $enquete[0];
		else 
			$this->enquete = array();
	}
}